// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import store from './store/store.js'
import axios from './http/http.js'
import 'babel-polyfill'
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
// import api from './http/api.js'
// import http from './http/api.js'
Vue.use(MintUI)
Vue.prototype.axios = axios
// Vue.prototype.api = api

// axios.defaults.baseURL = '/api'
axios.defaults.baseURL = 'http://fys.youledi.cn'//安徽阜阳
// axios.defaults.headers.post['Content-Type'] = 'application/json';
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  axios,
  components: { App },
  template: '<App/>'
})
